home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / html / src / mkpkg.src < prev    next >
Text File  |  1998-03-23  |  2KB  |  47 lines

  1. @@@STARTPACK(mkpkg;Packaging front-ends)
  2.  
  3. <P>
  4. mkpkg - front-ends to assist in the creation of pkgadd installable packages.
  5. <P>
  6. Written by Ronald Joe Record (rr@sco.com)
  7. <P>
  8. The mkpkg front-end attempts to ease the pain of creating a package
  9. suitable for installation with the pkgadd tools. The easiest way to use
  10. these front-ends is to first create a gzip'd tar archive of the distribution
  11. files. That is, as root and with the proper permissions/ownership set on
  12. the files you want to package :
  13. <PRE>
  14.   cd /
  15.   tar cfF - /tmp/filelist | gzip -9 > /home/ftp/pub/uw7/dist/foo-1.0-dist.tar.gz
  16. </PRE>
  17. In the example command above, i am using /tmp/filelist as a file which contains
  18. a list of all the files you want to distribute and i'm creating the gzip'd
  19. tar archive foo-1.0-dist.tar.gz (for the example product foo, release 1.0).
  20. <P>
  21. Note that the location of the distribution archive is important. In the
  22. example i have placed it in /home/ftp/pub/uw7/dist. By default, that's
  23. where the dist2pkg script looks for distribution archives. You can set
  24. this location by editing dist2pkg.
  25. <P>
  26. Once the distribution file is in place, you can then run the dist2pkg script.
  27. This script front-ends the chkdist and mkpkg scripts. The first time you
  28. run dist2pkg you needn't provide any options. It will extract your archive,
  29. generate a prototype file based on the permissions and ownership you gave,
  30. and eventually run pkgmk and pkgtrans.
  31. <P>
  32. There appears to be a bug in the packaging tools such that a symbolic link
  33. something like foo.so -> foo.so.1.0 doesn't get created properly. To help
  34. me find these types of symlinks, i run the chkproto command which spits out
  35. a list of prototype files that might have this problem. I hand edit those
  36. files changing any occurrence of a relative symlink to an absolute symlink.
  37. For instance, i might change the above to foo.so -> /usr/local/lib/foo.so.1.0
  38. <P>
  39. If you have any questions or suggestions, e-mail rr@sco.com
  40. </P>
  41.  
  42. @@@UW2DIST(http://www.sco.com/skunkware/uw7/devtools/mkpkg/)
  43. @@@OSR5DIST(http://www.sco.com/skunkware/osr5/devtools/mkpkg/)
  44. @@@SOURCE(ftp://ftp.sco.com/skunkware/src/devtools/)
  45. @@@ENDPACK
  46.  
  47.